<!--
 * @description: 
 * @Date: 2023-05-15 17:37:11
 * @example: 
 * @params: 
-->
<template>
    <div style="width: 100%; height: 100%;">
      <UnityVue :unity="unityContext" />
    </div>
  </template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';
import UnityWebgl from 'unity-webgl';
import UnityVue from 'unity-webgl/vue';
const unityContext = new UnityWebgl({
  loaderUrl:
    'https://static-huariot-com.oss-cn-hangzhou.aliyuncs.com/unity/test1/Build/OUT_BIM.loader.js',
  dataUrl:
    'https://static-huariot-com.oss-cn-hangzhou.aliyuncs.com/unity/test1/Build/OUT_BIM.data',
  frameworkUrl:
    'https://static-huariot-com.oss-cn-hangzhou.aliyuncs.com/unity/test1/Build/OUT_BIM.framework.js',
  codeUrl:
    'https://static-huariot-com.oss-cn-hangzhou.aliyuncs.com/unity/test1/Build/OUT_BIM.wasm',
});
unityContext.on('device', () => alert('click device ...'));
</script>
<style lang="less">

</style>